package week02;

/**
 * Created by applicatisonsky on 2017/9/21.
 */
public class Test {
    public static void main(String[] args) {
        Authenticator authenticator = AuthenticatorFactory.createAuthenticator();
        authenticator.save("root","123456");
        System.out.println(authenticator.authenticate("root","123456")?"密码正确":"密码错误");
    }
}
